import App from "../App"
import { FirstCom } from "../pages/FirstCom"
import { UsePage } from "../pages/FirstCom/UsePage" 
import { Send } from "../pages/FirstCom/Send"
import ReduxCom from "../pages/ReduxCom"
import ReactRedux from  "../pages/ReactRedux"
const routes = [
    {
        path: '/',
        exact: true,
        component: App
    },
    {
        path: '/firstcom',
        redirect:'/firstcom/user',
        component: FirstCom,
        children: [
            {
                path: '/firstcom/user',
                component: UsePage
            },            
            {
                path: '/firstcom/send',
                component: Send
            }
        ]
    },
    {
        path: '/reduxcom',
        component: ReduxCom
    },
    {
        path: '/reactredux',
        component: ReactRedux
    }
]
export default routes